//
//  AL_ModelSongList.m
//  22-homework-QQMV-ALi
//
//  Created by 王道林 on 16/8/15.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "AL_ModelSongList.h"


@implementation AL_ModelSongList

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"auditionList"]) {
        NSMutableArray *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            AL_ModelSongList *model = [AL_ModelSongList modelWithDic:dic];
            [arr addObject:model];
        }
        _auditionList = arr;
    }
    
    if ([key isEqualToString:@"urlList"]) {
        NSMutableArray *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            AL_ModelSongList *model = [AL_ModelSongList modelWithDic:dic];
            [arr addObject:model];
        }
        _urlList = arr;
    }

    
}

@end
